import Vue from "vue";
import Vuex from "vuex"

Vue.use(Vuex);

export const store =new Vuex.Store({
	state:{
		login:false,
//		skp:[]
	},
	getters:{
		login:state=>{
			return state.login
		},
//		skp:state=>{
//			return state.idss
//		}
	},
	mutations:{
		checkLogin:(state,payload)=>{
			state.login=payload;
		},
//		incrementid:(state,payload)=>{
//			state.idss=payload;
//		}
	},
	actions:{
		checkLogin:({commit},payload)=>{
			commit('checkLogin',payload)
		},
//		incrementid:(state,payload)=>{
//			commit('incrementid',payload)
//		}
	}
})
